import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import Community from '@/components/community/Overview' //Q社区
import Activity from '@/components/community/activity' //Q活动
import oNservice from '@/components/community/oNservice' //Q服务
import Qlife from '@/components/community/Qlife' //Q社区
import Details from '@/components/details/details'
import Teachers from '@/components/details/teachers'
import DetailsList from '@/components/details/detailsList'
import ActivityList from '@/components/details/activityList'
import BannerDetail from '@/components/details/bannerDetail'
import recruitList from '@/components/details/recruitList'
import CommunityRoute from './community'
import integral from '@/components/community/integral'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
            path: '/community/integral',
            name: 'Integral',
            component: integral
        },
        {
            path: '/',
            name: 'index',
            component: index
        },
        // Q社区
        {
            path: '/community/Overview',
            name: 'Community',
            component: Community
        },
        // Q活动
        {
            path: '/community/activity',
            name: 'Activity',
            component: Activity
        },
        // Q服务
        {
            path: '/community/oNservice',
            name: 'oNservice',
            component: oNservice
        },
        // Q享生活
        {
            path: '/community/Qlife',
            name: 'Qlife',
            component: Qlife
        },
        // 详情
        {
            path: '/details/details',
            name: 'Details',
            component: Details
        },
        // 教师风采展示详情
        {
            path: '/details/teachers',
            name: 'Teachers',
            component: Teachers,
        },
        // 新闻列表
        {
            path: '/details/detailsList',
            name: 'DetailsList',
            component: DetailsList,
        },
        // 新闻列表
        {
            path: '/details/activityList',
            name: 'ActivityList',
            component: ActivityList,
        },
        // 新闻列表
        {
            path: '/details/BannerDetail',
            name: 'BannerDetail',
            component: BannerDetail,
        },
        // 新闻列表
        {
            path: '/details/recruitList',
            name: 'recruitList',
            component: recruitList,
        },
        ...CommunityRoute
    ]
})